<div class="textmodule">
    {*
    <div class="textmodule_title">
        <h3>{if $link->detail_title != ''}
            {$link->detail_title}
            {else}
            {$link->name}
            {/if}</h3>
    </div>
    *}
    {if $link->name != ''}
        {layout_title title=$link->name}
    {else}
        {layout_title title=$link->detail_title}
    {/if}
    
    {if $config->show_date == 1}
    <div class="post_date">
        {$link->full_date}
    </div>
    {/if}
    
    {permissions level=$smarty.const.UILEVEL_NORMAL}
    {if $permissions.edit == 1 || $permissions.delete == 1}
    <div class="itemactions">
        {if $permissions.edit == 1}
        <a href="{link action=edit id=$link->id}"><img class="mngmnt_icon" src="{$smarty.const.ICON_RELATIVE}edit.png" title="{$_TR.alt_edit}" alt="{$_TR.alt_edit}" /></a>
        {/if}
        {if $permissions.delete == 1}
        <a href="{link action=delete id=$link->id}"><img class="mngmnt_icon" src="{$smarty.const.ICON_RELATIVE}delete.png" title="{$_TR.alt_delete}" alt="{$_TR.alt_delete}" onclick="return confirm('{$_TR.delete_link_confirm}');" /></a>
        {/if}
        {if $smarty.foreach.links.first == 0}
        <a href="{link action=rank_switch a=$link->rank b=$prev id=$link->id}">           
            <img src="{$smarty.const.ICON_RELATIVE}up.png" title="{$_TR.alt_previous}" alt="{$_TR.alt_previous}" />
        </a>
        {/if}
        {if $smarty.foreach.links.last == 0}
        <a href="{link action=rank_switch a=$next b=$link->rank id=$link->id}">
            <img src="{$smarty.const.ICON_RELATIVE}down.png" title="{$_TR.alt_next}" alt="{$_TR.alt_next}" />
        </a>
        {/if}
    </div>
    {/if}
    {/permissions}
    <div class="bodycopy">
        {$link->description}
    </div>
</div>